package com.ldf.jrtsp.handler;

import com.ldf.jrtsp.parser.RtspDataParser;
import com.ldf.jrtsp.player.RtspPlayer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import static com.ldf.jrtsp.constants.RtspConstants.RTSP_OK;
import static com.ldf.jrtsp.enums.RtspOptionsType.GET_PARAMETER;
import static com.ldf.jrtsp.enums.RtspOptionsType.PAUSE;

/**
 * GetParameter reply handle
 *
 * @author lidaofu
 * @since 2024/6/19
 **/
public class RtspGetParameterReplyHandle implements RtspReplyHandle {
    private final static Logger log = LoggerFactory.getLogger(RtspGetParameterReplyHandle.class);

    @Override
    public void handle(RtspPlayer player, RtspDataParser rtspDataParser) {
        if (rtspDataParser.getResponse().equals(RTSP_OK)) {

        } else {

        }
        player.sendOptionsCallBack(GET_PARAMETER,rtspDataParser);
    }
}
